package com.etone.smartAudit.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


/**
 * @author: 张任豪
 * @create: 2021-11-25 15:42:10
 * @Description 定额库
 */

@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
@TableName(value = "f_quota")
public class Quota implements Serializable {

    @TableId(type = IdType.AUTO, value = "id")
    private Integer id;

    /**
     * 定额编号
     */
    @TableField("quota_code")
    @ExcelProperty(value = "定额编号",index = 1)
    private String quotaCode;

    /**
     * 材价名称
     */
    @TableField("name")
    @ExcelProperty(value = "名称",index = 2)
    private String name;

    /**
     * 单位
     */
    @TableField("unit")
    @ExcelProperty(value = "单位",index = 3)
    private String unit;

    /**
     * 技工价格
     */
    @TableField("artisan_price")
    @ExcelProperty(value = "技工工价",index = 4)
    private BigDecimal artisanPrice;

    /**
     * 普工价格
     */
    @TableField("general_price")
    @ExcelProperty(value = "普工工价",index = 5)
    private BigDecimal generalPrice;

    /**
     * 索引目录
     */
    @TableField(exist = false)
    @ExcelProperty(value = "索引目录",index = 6)
    private String index;

    /**
     * 导入时间
     */
    @TableField("create_date")
    private Date createDate;
}
